include ../Makefile.include

version   := 1.18.2
build_dir := $(software)-$(version)
source    := $(build_dir).tar.bz2

$(build_dir): $(source)
	rm -rf $(build_dir)
	tar jxvf $(source)
	cp busybox_config $(build_dir)/.config

$(package): $(build_dir) 
	-rm -rf tmp
	mkdir -p tmp/etc/init.d
	install -m 755 -D S00syslog tmp/etc/init.d/syslog
	make -C $(build_dir) oldconfig
	make -C $(build_dir)
	make -C $(build_dir) CONFIG_PREFIX=`pwd`/tmp install
	tar -C tmp -cpzf $@ .

clean: $(software)_clean
	-rm -rf $(build_dir)

